<form class="navbar-form navbar-right" method="POST" action="/user/login">
    <div class="form-group">
        <input type="text" placeholder="请输入账号名称" name="name" class="form-control">
    </div>
    <div class="form-group">
        <input type="password" placeholder="请输入账号密码" name="password" class="form-control">
    </div>
    <button type="submit" class="btn btn-success">登陆</button>
    <button type="button" class="btn btn-info" onclick="window.location='/user/reg'">注册</button>
</form>
<!--/.navbar-collapse -->